
import 'dart:convert';

AssignedBooks assignedBooksFromJson(String str) => AssignedBooks.fromJson(json.decode(str));

String assignedBooksToJson(AssignedBooks data) => json.encode(data.toJson());

class AssignedBooks {
    AssignedBooks({
        this.assignedBooks,
    });

    List<AssignedBook>? assignedBooks;

    factory AssignedBooks.fromJson(Map<String, dynamic> json) => AssignedBooks(
        assignedBooks: List<AssignedBook>.from(json["assignedBooks"].map((x) => AssignedBook.fromJson(x))),
    );

    Map<String, dynamic> toJson() => {
        "assignedBooks": List<dynamic>.from(assignedBooks!.map((x) => x.toJson())),
    };
}

class AssignedBook {
    AssignedBook({
        this.id,
        this.teacherAssessment,
        this.title,
    });

    String? id;
    bool? teacherAssessment;
    String? title;

    factory AssignedBook.fromJson(Map<String, dynamic> json) => AssignedBook(
        id: json["id"],
        teacherAssessment: json["teacherAssessment"],
        title: json["title"],
    );

    Map<String, dynamic> toJson() => {
        "id": id,
        "teacherAssessment": teacherAssessment,
        "title": title,
    };
}
